﻿/*
 * Created by SharpDevelop.
 * User: hugo
 * Date: 2012/8/17
 * Time: 下午 09:14
 * 
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 */
using System;
using MyPetShop.Domain;
using FluentNHibernate.Mapping;

namespace MyPetShop.Domain.Mapping
{
	/// <summary>
	/// Description of ItemMapping.
	/// </summary>
	public class ItemMap : ClassMap<Item>
    {
        public ItemMap()
        {
            Table("Item");
            Id(x => x.ItemId).Column("ItemId")
                .GeneratedBy.Identity();
            Map(x => x.Description);
            Map(x => x.Quantity);
            Map(x => x.ListPrice);
        }
    }
}
